package com.zczc.tagmanagement.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: TagSorts
* @Description: tag_sorts表对应的java bean类
* @author: yishui zhiyubujian@163.com
 */
@Table(name = "tag_sorts")
public class TagSorts implements Serializable {
    /**
     * @Fields tag_sorts.id :
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "select uuid()")
    private String id;

    /**
     * 类型的编码
     */
    /**
     * @Fields tag_sorts.sort_code :类型的编码
     */
    @Column(name = "sort_code")
    private String sortCode;

    /**
     * 类型的名称
     */
    /**
     * @Fields tag_sorts.sort_name :类型的名称
     */
    @Column(name = "sort_name")
    private String sortName;

    /**
     * 逻辑删除
     */
    /**
     * @Fields tag_sorts.deleted :逻辑删除
     */
    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    /**
     * @return id
     */
    /**
     * @return tag_sorts.id : 返回
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    /**
     * @param id of tag_sorts : 设置
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取类型的编码
     *
     * @return sort_code - 类型的编码
     */
    /**
     * @return tag_sorts.sort_code : 返回 类型的编码
     */
    public String getSortCode() {
        return sortCode;
    }

    /**
     * 设置类型的编码
     *
     * @param sortCode 类型的编码
     */
    /**
     * @param sortCode of tag_sorts : 设置 类型的编码
     */
    public void setSortCode(String sortCode) {
        this.sortCode = sortCode;
    }

    /**
     * 获取类型的名称
     *
     * @return sort_name - 类型的名称
     */
    /**
     * @return tag_sorts.sort_name : 返回 类型的名称
     */
    public String getSortName() {
        return sortName;
    }

    /**
     * 设置类型的名称
     *
     * @param sortName 类型的名称
     */
    /**
     * @param sortName of tag_sorts : 设置 类型的名称
     */
    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    /**
     * 获取逻辑删除
     *
     * @return deleted - 逻辑删除
     */
    /**
     * @return tag_sorts.deleted : 返回 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * 设置逻辑删除
     *
     * @param deleted 逻辑删除
     */
    /**
     * @param deleted of tag_sorts : 设置 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sortCode=").append(sortCode);
        sb.append(", sortName=").append(sortName);
        sb.append(", deleted=").append(deleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TagSorts other = (TagSorts) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSortCode() == null ? other.getSortCode() == null : this.getSortCode().equals(other.getSortCode()))
            && (this.getSortName() == null ? other.getSortName() == null : this.getSortName().equals(other.getSortName()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSortCode() == null) ? 0 : getSortCode().hashCode());
        result = prime * result + ((getSortName() == null) ? 0 : getSortName().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }
}